package com.dhy.takeaway.dao;

import com.dhy.takeaway.entity.Order;
import com.dhy.takeaway.entity.OrderGood;
import com.dhy.takeaway.entity.StoreOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {
    int addOrder(Order order);
    int addOrderGoods(List<OrderGood> orderGoods);

    List<Map> findOrderList(String buyerId);
    List<Map> findOrderDetail(String orderId);

    List<StoreOrder> storeOrderList(String id);
    List<Map> storeOrderDetail(String id);
}
